from app.server.flask_app.admin_views import MyBaseModelView


class OrderModelView(MyBaseModelView):

    column_list = (
        "id",
        "status",
        "type",
        "summ",
        "summ_total",
        "was_created",
        "auto_renew",
        "expiring_on",
        "was_renewed",
        "site",
        "user",
        "proxies",
        "last_notified",
    )

    column_editable_list = (
        "summ",
        "summ_total",
        "was_created",
        "expiring_on",
        "was_renewed",
        "last_notified",
    )

    column_filters = (
        "status",
        "summ",
        "summ_total",
        "was_created",
        "auto_renew",
        "expiring_on",
        "user",
        "type",
    )

    column_default_sort = ("id", True)
